.class Lcom/burstly/lib/component/AdaptorController;
.super Ljava/lang/Object;
.source "AdaptorController.java"

# interfaces
.implements Lcom/burstly/lib/component/IAdaptorController;
.implements Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer$IOverlayListener;
.implements Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/AdaptorController$ParseParamsAsyncTask;,
        Lcom/burstly/lib/component/AdaptorController$ViewSwitcher;
    }
.end annotation


# static fields
.field private static final FLAG_GESTURE_DEBUG:Ljava/lang/String; = "gestureDebug"

.field private static final GESTURE_ON_FLAG:Ljava/lang/String; = "on"

.field static final LOG:Lcom/burstly/lib/util/LoggerExt;

.field private static final SECURE_RANDOM:Ljava/security/SecureRandom;


# instance fields
.field final mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

.field mAdaptorListener:Lcom/burstly/lib/component/AdaptorListener;

.field private mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

.field private mBurstlyViewId:Ljava/lang/String;

.field private mClientTargetParams:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private final mContext:Landroid/content/Context;

.field private mCurrentState:Lcom/burstly/lib/component/ComponentState;

.field private mCustomNetworkParams:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;"
        }
    .end annotation
.end field

.field mDebugger:Lcom/burstly/lib/util/Utils$DebugWrapper;

.field volatile mDestroyed:Z

.field private mFailedToShow:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lcom/burstly/lib/component/FailedToShow;",
            ">;"
        }
    .end annotation
.end field

.field private mIsDebugGestureOn:Z

.field mIsInterstitial:Z

.field private mIsInterstitialMode:Ljava/lang/Boolean;

.field mIsPrefetchRequest:Z

.field private mLifeCycleListener:Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;

.field mNetworkName:Ljava/lang/String;

.field mParams:Lcom/burstly/lib/network/ResponseObject;

.field mParent:Lcom/burstly/lib/ui/BurstlyView;

.field private mResponseSaver:Lcom/burstly/lib/persistance/ResponseSaver;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/burstly/lib/persistance/ResponseSaver",
            "<",
            "Lcom/burstly/lib/network/beans/ResponseBean;",
            ">;"
        }
    .end annotation
.end field

.field mTag:Ljava/lang/String;

.field private final mTrackClickRequest:Lcom/burstly/lib/network/beans/TrackClickRequest;

.field private mTrackRequestSender:Lcom/burstly/lib/component/TrackRequestSender;

.field private final mTrackShowRequest:Lcom/burstly/lib/network/beans/TrackShowRequest;

.field private final mUiThread:Landroid/os/Handler;

.field private final mViewHolder:Lcom/burstly/lib/component/ViewHolder;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 75
    invoke-static {}, Lcom/burstly/lib/util/LoggerExt;->getInstance()Lcom/burstly/lib/util/LoggerExt;

    move-result-object v0

    sput-object v0, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    .line 90
    new-instance v0, Ljava/security/SecureRandom;

    invoke-direct {v0}, Ljava/security/SecureRandom;-><init>()V

    sput-object v0, Lcom/burstly/lib/component/AdaptorController;->SECURE_RANDOM:Ljava/security/SecureRandom;

    return-void
.end method

.method constructor <init>(Lcom/burstly/lib/component/ControllerConfig;)V
    .locals 5
    .parameter "config"

    .prologue
    .line 228
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 229
    invoke-virtual {p1}, Lcom/burstly/lib/component/ControllerConfig;->getAdaptor()Lcom/burstly/lib/component/IBurstlyAdaptor;

    move-result-object v3

    iput-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    .line 230
    invoke-virtual {p1}, Lcom/burstly/lib/component/ControllerConfig;->getContext()Landroid/content/Context;

    move-result-object v3

    iput-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mContext:Landroid/content/Context;

    .line 231
    new-instance v3, Landroid/os/Handler;

    invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;

    move-result-object v4

    invoke-direct {v3, v4}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V

    iput-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mUiThread:Landroid/os/Handler;

    .line 232
    new-instance v3, Lcom/burstly/lib/component/ViewHolder;

    invoke-direct {v3}, Lcom/burstly/lib/component/ViewHolder;-><init>()V

    iput-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mViewHolder:Lcom/burstly/lib/component/ViewHolder;

    .line 233
    new-instance v3, Lcom/burstly/lib/network/beans/TrackShowRequest;

    invoke-direct {v3}, Lcom/burstly/lib/network/beans/TrackShowRequest;-><init>()V

    iput-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackShowRequest:Lcom/burstly/lib/network/beans/TrackShowRequest;

    .line 234
    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackShowRequest:Lcom/burstly/lib/network/beans/TrackShowRequest;

    invoke-virtual {v3}, Lcom/burstly/lib/network/beans/TrackShowRequest;->getData()Lcom/burstly/lib/network/beans/TrackShowRequest$Request;

    move-result-object v2

    .line 235
    .local v2, trackData:Lcom/burstly/lib/network/beans/TrackShowRequest$Request;
    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mContext:Landroid/content/Context;

    invoke-static {v3}, Lcom/burstly/lib/util/Utils;->getUserAgent(Landroid/content/Context;)Lcom/burstly/lib/network/beans/UserAgentInfo;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/burstly/lib/network/beans/TrackShowRequest$Request;->setUserAgentInfo(Lcom/burstly/lib/network/beans/UserAgentInfo;)V

    .line 236
    invoke-static {}, Lcom/burstly/lib/util/Utils;->getApplicationVersionName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/burstly/lib/network/beans/TrackShowRequest$Request;->setApplicationVersion(Ljava/lang/String;)V

    .line 237
    new-instance v3, Lcom/burstly/lib/network/beans/TrackClickRequest;

    invoke-direct {v3}, Lcom/burstly/lib/network/beans/TrackClickRequest;-><init>()V

    iput-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackClickRequest:Lcom/burstly/lib/network/beans/TrackClickRequest;

    .line 238
    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackClickRequest:Lcom/burstly/lib/network/beans/TrackClickRequest;

    invoke-virtual {v3}, Lcom/burstly/lib/network/beans/TrackClickRequest;->getData()Lcom/burstly/lib/network/beans/TrackClickRequest$Request;

    move-result-object v0

    .line 239
    .local v0, data:Lcom/burstly/lib/network/beans/TrackClickRequest$Request;
    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mContext:Landroid/content/Context;

    invoke-static {v3}, Lcom/burstly/lib/util/Utils;->encryptedDeviceId(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/burstly/lib/network/beans/TrackClickRequest$Request;->setEncDevId(Ljava/lang/String;)V

    .line 240
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    iput-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mFailedToShow:Ljava/util/List;

    .line 241
    invoke-virtual {p1}, Lcom/burstly/lib/component/ControllerConfig;->getCreativeData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v3

    invoke-virtual {v3}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getFeedName()Ljava/lang/String;

    move-result-object v1

    .line 242
    .local v1, feedName:Ljava/lang/String;
    if-eqz v1, :cond_0

    .end local v1           #feedName:Ljava/lang/String;
    :goto_0
    iput-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    .line 243
    new-instance v3, Lcom/burstly/lib/component/TrackRequestSender;

    invoke-direct {v3, p0}, Lcom/burstly/lib/component/TrackRequestSender;-><init>(Lcom/burstly/lib/component/AdaptorController;)V

    iput-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackRequestSender:Lcom/burstly/lib/component/TrackRequestSender;

    .line 244
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->createControllerState(Lcom/burstly/lib/component/ControllerConfig;)V

    .line 245
    invoke-virtual {p1}, Lcom/burstly/lib/component/ControllerConfig;->getBurstlyViewId()Ljava/lang/String;

    move-result-object v3

    invoke-direct {p0, v3}, Lcom/burstly/lib/component/AdaptorController;->setBurstlyViewId(Ljava/lang/String;)V

    .line 246
    invoke-static {p0}, Lcom/burstly/lib/service/ServerConfigurationService;->addRecipient(Lcom/burstly/lib/service/ServerConfigurationService$IServerConfigurable;)V

    .line 247
    return-void

    .line 242
    .restart local v1       #feedName:Ljava/lang/String;
    :cond_0
    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v3}, Lcom/burstly/lib/component/IBurstlyAdaptor;->getNetworkName()Ljava/lang/String;

    move-result-object v1

    goto :goto_0
.end method

.method static synthetic access$000(Lcom/burstly/lib/component/AdaptorController;)Lcom/burstly/lib/component/ViewHolder;
    .locals 1
    .parameter "x0"

    .prologue
    .line 70
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mViewHolder:Lcom/burstly/lib/component/ViewHolder;

    return-object v0
.end method

.method private bannerShown()Z
    .locals 1

    .prologue
    .line 315
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->isInterstitial()Z

    move-result v0

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private static checkHasNoParent(Landroid/view/View;)V
    .locals 2
    .parameter "view"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalStateException;
        }
    .end annotation

    .prologue
    .line 935
    if-eqz p0, :cond_0

    invoke-virtual {p0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 936
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "View MUST NOT have a parent!"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 938
    :cond_0
    return-void
.end method

.method private createControllerState(Lcom/burstly/lib/component/ControllerConfig;)V
    .locals 2
    .parameter "config"

    .prologue
    .line 255
    new-instance v0, Lcom/burstly/lib/component/ComponentState;

    invoke-direct {v0}, Lcom/burstly/lib/component/ComponentState;-><init>()V

    iput-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    .line 256
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {p1}, Lcom/burstly/lib/component/ControllerConfig;->getResponseBean()Lcom/burstly/lib/network/beans/ResponseBean;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/ComponentState;->setFullResponse(Lcom/burstly/lib/network/beans/ResponseBean;)V

    .line 257
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {p1}, Lcom/burstly/lib/component/ControllerConfig;->getCreativeData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/ComponentState;->setResponseData(Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;)V

    .line 258
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {p1}, Lcom/burstly/lib/component/ControllerConfig;->getRequestData()Lcom/burstly/lib/network/beans/RequestData;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/ComponentState;->setRequestData(Lcom/burstly/lib/network/beans/RequestData;)V

    .line 259
    return-void
.end method

.method private forceInterstitial()Z
    .locals 3

    .prologue
    const/4 v1, 0x1

    .line 343
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getIsInterstital()Ljava/lang/Integer;

    move-result-object v0

    .line 344
    .local v0, isInterstital:Ljava/lang/Integer;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v2

    if-ne v2, v1, :cond_0

    :goto_0
    return v1

    :cond_0
    const/4 v1, 0x0

    goto :goto_0
.end method

.method private getFullResponse()Lcom/burstly/lib/network/beans/ResponseBean;
    .locals 1

    .prologue
    .line 1065
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v0}, Lcom/burstly/lib/component/ComponentState;->getFullResponse()Lcom/burstly/lib/network/beans/ResponseBean;

    move-result-object v0

    return-object v0
.end method

.method private getNotExpiredResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    .locals 6

    .prologue
    .line 1023
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    .line 1024
    .local v0, responseData:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    invoke-static {v0}, Lcom/burstly/lib/util/Utils;->isAdExpired(Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 1025
    sget-object v1, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v3, "Ad expired {0}."

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1026
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->getFullResponse()Lcom/burstly/lib/network/beans/ResponseBean;

    move-result-object v1

    invoke-virtual {v1}, Lcom/burstly/lib/network/beans/ResponseBean;->isIsLoadedFromCache()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 1027
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mResponseSaver:Lcom/burstly/lib/persistance/ResponseSaver;

    invoke-virtual {v1}, Lcom/burstly/lib/persistance/ResponseSaver;->deleteLastResponse()V

    .line 1029
    :cond_0
    const/4 v0, 0x0

    .line 1031
    :cond_1
    return-object v0
.end method

.method private getSessionLength(Lcom/burstly/lib/network/ResponseObject;)Ljava/lang/Number;
    .locals 9
    .parameter "params"

    .prologue
    .line 947
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v5

    invoke-virtual {v5}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getSessionLength()Ljava/lang/Integer;

    move-result-object v4

    .line 948
    .local v4, sessionLengthGlobal:Ljava/lang/Number;
    if-eqz v4, :cond_0

    .line 963
    .end local v4           #sessionLengthGlobal:Ljava/lang/Number;
    :goto_0
    return-object v4

    .line 951
    .restart local v4       #sessionLengthGlobal:Ljava/lang/Number;
    :cond_0
    const-string v5, "sessionLength"

    invoke-virtual {p1, v5}, Lcom/burstly/lib/network/ResponseObject;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    .line 952
    .local v3, sessionLengthCustomAdRaw:Ljava/lang/Object;
    const/4 v2, 0x0

    .line 954
    .local v2, sessionLength:Ljava/lang/Number;
    :try_start_0
    instance-of v5, v3, Ljava/lang/Number;

    if-eqz v5, :cond_2

    .line 955
    move-object v0, v3

    check-cast v0, Ljava/lang/Number;

    move-object v2, v0

    .end local v3           #sessionLengthCustomAdRaw:Ljava/lang/Object;
    :cond_1
    :goto_1
    move-object v4, v2

    .line 963
    goto :goto_0

    .line 956
    .restart local v3       #sessionLengthCustomAdRaw:Ljava/lang/Object;
    :cond_2
    instance-of v5, v3, Ljava/lang/String;

    if-eqz v5, :cond_1

    .line 957
    check-cast v3, Ljava/lang/String;

    .end local v3           #sessionLengthCustomAdRaw:Ljava/lang/Object;
    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v5

    invoke-static {v5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    goto :goto_1

    .line 960
    :catch_0
    move-exception v1

    .line 961
    .local v1, e:Ljava/lang/Exception;
    sget-object v5, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v6, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v7, "sessionLength is not a number."

    const/4 v8, 0x0

    new-array v8, v8, [Ljava/lang/Object;

    invoke-virtual {v5, v6, v7, v8}, Lcom/burstly/lib/util/LoggerExt;->logWarning(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_1
.end method

.method private handleAsBanner()Z
    .locals 1

    .prologue
    .line 333
    iget-boolean v0, p0, Lcom/burstly/lib/component/AdaptorController;->mIsInterstitial:Z

    if-nez v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static handleErrorFlow(Lcom/burstly/lib/component/AdaptorController;Ljava/lang/Throwable;)V
    .locals 9
    .parameter "controller"
    .parameter "exc"

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 880
    invoke-static {p1}, Landroid/util/Log;->getStackTraceString(Ljava/lang/Throwable;)Ljava/lang/String;

    move-result-object v1

    .line 881
    .local v1, stackTrace:Ljava/lang/String;
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mParams:Lcom/burstly/lib/network/ResponseObject;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mParams:Lcom/burstly/lib/network/ResponseObject;

    invoke-virtual {v2}, Lcom/burstly/lib/network/ResponseObject;->toString()Ljava/lang/String;

    move-result-object v0

    .line 882
    .local v0, params:Ljava/lang/String;
    :goto_0
    sget-object v2, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v4, "Caught an exception while showing ad for {0} component.\nCaused response: {1}"

    const/4 v5, 0x2

    new-array v5, v5, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    aput-object v6, v5, v7

    aput-object v0, v5, v8

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 884
    sget-object v2, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v4, "Stacktrace : {0}"

    new-array v5, v8, [Ljava/lang/Object;

    aput-object v1, v5, v7

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 885
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    sget-object v3, Lcom/burstly/lib/ui/LastBurstlyError;->ERROR_PROCESSING_PARAMS:Lcom/burstly/lib/ui/LastBurstlyError;

    invoke-virtual {v2, v3}, Lcom/burstly/lib/ui/BurstlyView;->setLastError(Lcom/burstly/lib/ui/LastBurstlyError;)V

    .line 886
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptorListener:Lcom/burstly/lib/component/AdaptorListener;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    iget-boolean v4, p0, Lcom/burstly/lib/component/AdaptorController;->mIsInterstitial:Z

    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/component/AdaptorListener;->failedToLoad(Ljava/lang/String;ZLjava/lang/String;)V

    .line 887
    return-void

    .line 881
    .end local v0           #params:Ljava/lang/String;
    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static handleServerResponse(Lcom/burstly/lib/component/AdaptorController;)V
    .locals 6
    .parameter "controller"

    .prologue
    .line 895
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    .line 896
    .local v0, adaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;
    iget-object v4, p0, Lcom/burstly/lib/component/AdaptorController;->mViewHolder:Lcom/burstly/lib/component/ViewHolder;

    .line 897
    .local v4, viewHolder:Lcom/burstly/lib/component/ViewHolder;
    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->getAdType()Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    move-result-object v2

    .line 899
    .local v2, type:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->isPrefetchRequest()Z

    move-result v1

    .line 900
    .local v1, prefetchRequest:Z
    const/4 v3, 0x0

    .line 901
    .local v3, view:Landroid/view/View;
    if-eqz v1, :cond_1

    .line 902
    sget-object v5, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->INTERSTITIAL_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    if-ne v2, v5, :cond_0

    .line 903
    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->precacheInterstitialAd()V

    .line 914
    :goto_0
    return-void

    .line 905
    :cond_0
    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->precacheAd()Landroid/view/View;

    move-result-object v3

    .line 906
    invoke-static {v3}, Lcom/burstly/lib/component/AdaptorController;->checkHasNoParent(Landroid/view/View;)V

    .line 907
    invoke-static {p0, v0, v3}, Lcom/burstly/lib/component/AdaptorController;->wrap(Lcom/burstly/lib/component/AdaptorController;Lcom/burstly/lib/component/IBurstlyAdaptor;Landroid/view/View;)Landroid/view/ViewGroup;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/burstly/lib/component/ViewHolder;->setPrecachedAdView(Landroid/view/View;)V

    goto :goto_0

    .line 910
    :cond_1
    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->getNewAd()Landroid/view/View;

    move-result-object v3

    .line 911
    invoke-static {v3}, Lcom/burstly/lib/component/AdaptorController;->checkHasNoParent(Landroid/view/View;)V

    .line 912
    invoke-static {p0, v0, v3}, Lcom/burstly/lib/component/AdaptorController;->wrap(Lcom/burstly/lib/component/AdaptorController;Lcom/burstly/lib/component/IBurstlyAdaptor;Landroid/view/View;)Landroid/view/ViewGroup;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/burstly/lib/component/ViewHolder;->setAdView(Landroid/view/View;)V

    goto :goto_0
.end method

.method private initAutorefresh(Lcom/burstly/lib/network/ResponseObject;)V
    .locals 7
    .parameter "params"

    .prologue
    .line 972
    iget-boolean v2, p0, Lcom/burstly/lib/component/AdaptorController;->mIsPrefetchRequest:Z

    if-nez v2, :cond_0

    .line 973
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->getSessionLength(Lcom/burstly/lib/network/ResponseObject;)Ljava/lang/Number;

    move-result-object v0

    .line 974
    .local v0, autorefresh:Ljava/lang/Number;
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getLifeCycleListener()Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;

    move-result-object v1

    .line 975
    .local v1, lifeCycleListener:Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/Number;->intValue()I

    move-result v2

    if-lez v2, :cond_0

    if-eqz v1, :cond_0

    .line 976
    sget-object v2, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v4, "Session length presents in response: {0}. Overriding current autorefresh state..."

    const/4 v5, 0x1

    new-array v5, v5, [Ljava/lang/Object;

    const/4 v6, 0x0

    aput-object v0, v5, v6

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 978
    invoke-virtual {v0}, Ljava/lang/Number;->intValue()I

    move-result v2

    invoke-interface {v1, v2}, Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;->startAutorefreshByParam(I)V

    .line 981
    .end local v0           #autorefresh:Ljava/lang/Number;
    .end local v1           #lifeCycleListener:Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;
    :cond_0
    return-void
.end method

.method private isInterstitial()Z
    .locals 1

    .prologue
    .line 324
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->handleAsBanner()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->forceInterstitial()Z

    move-result v0

    if-nez v0, :cond_1

    :cond_0
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->handleAsBanner()Z

    move-result v0

    if-nez v0, :cond_2

    :cond_1
    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private notifySuccessfullyShowed()V
    .locals 3

    .prologue
    .line 355
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->bannerShown()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 356
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0, p0}, Lcom/burstly/lib/ui/BurstlyView;->setDisplayedBannerController(Lcom/burstly/lib/component/IAdaptorController;)V

    .line 360
    :goto_0
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->isInterstitial()Z

    move-result v2

    invoke-interface {v0, v1, v2}, Lcom/burstly/lib/component/IInternalBurstlyAdListener;->didLoad(Ljava/lang/String;Z)V

    .line 361
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->showComponent()V

    .line 362
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mDebugger:Lcom/burstly/lib/util/Utils$DebugWrapper;

    invoke-virtual {v0}, Lcom/burstly/lib/util/Utils$DebugWrapper;->logAll()V

    .line 363
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    sget-object v1, Lcom/burstly/lib/component/IBurstlyAdaptor$TransactionCode;->CODE_SUCCESS:Lcom/burstly/lib/component/IBurstlyAdaptor$TransactionCode;

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->endTransaction(Lcom/burstly/lib/component/IBurstlyAdaptor$TransactionCode;)V

    .line 364
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mLifeCycleListener:Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;

    new-instance v1, Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mFailedToShow:Ljava/util/List;

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;->successToshow(Ljava/util/List;)V

    .line 365
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mFailedToShow:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 366
    return-void

    .line 358
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0, p0}, Lcom/burstly/lib/ui/BurstlyView;->setDisplayedInterstitialController(Lcom/burstly/lib/component/IAdaptorController;)V

    goto :goto_0
.end method

.method private saveCookies()V
    .locals 1

    .prologue
    .line 530
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    if-eqz v0, :cond_0

    .line 531
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    invoke-virtual {v0}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getCookie()[Lcom/burstly/lib/network/beans/cookie/CookieHolder;

    move-result-object v0

    invoke-static {v0}, Lcom/burstly/lib/network/beans/cookie/CookieManager;->saveCookies([Lcom/burstly/lib/network/beans/cookie/CookieHolder;)V

    .line 533
    :cond_0
    return-void
.end method

.method private saveSuccessResponse()V
    .locals 4

    .prologue
    .line 689
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mResponseSaver:Lcom/burstly/lib/persistance/ResponseSaver;

    invoke-virtual {v2}, Lcom/burstly/lib/persistance/ResponseSaver;->isAllowedToSave()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 690
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->getFullResponse()Lcom/burstly/lib/network/beans/ResponseBean;

    move-result-object v1

    .line 691
    .local v1, rBean:Lcom/burstly/lib/network/beans/ResponseBean;
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    .line 694
    .local v0, currentData:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    invoke-static {v0}, Lcom/burstly/lib/util/Utils;->isThirdPartySDK(Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 695
    const/4 v2, 0x1

    new-array v2, v2, [Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    const/4 v3, 0x0

    aput-object v0, v2, v3

    invoke-virtual {v1, v2}, Lcom/burstly/lib/network/beans/ResponseBean;->setData([Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;)V

    .line 698
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mResponseSaver:Lcom/burstly/lib/persistance/ResponseSaver;

    invoke-virtual {v2, v1}, Lcom/burstly/lib/persistance/ResponseSaver;->saveLastResponse(Ljava/io/Serializable;)V

    .line 701
    .end local v0           #currentData:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    .end local v1           #rBean:Lcom/burstly/lib/network/beans/ResponseBean;
    :cond_0
    return-void
.end method

.method private sendTrackClickRequest(Ljava/lang/String;)V
    .locals 1
    .parameter "url"

    .prologue
    .line 560
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackRequestSender:Lcom/burstly/lib/component/TrackRequestSender;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/component/TrackRequestSender;->onClick(Ljava/lang/String;)V

    .line 561
    return-void
.end method

.method private setBurstlyViewId(Ljava/lang/String;)V
    .locals 2
    .parameter "burstlyViewId"

    .prologue
    .line 1053
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyViewId:Ljava/lang/String;

    .line 1054
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " adaptor controller -> "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    .line 1055
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    invoke-static {v0}, Lcom/burstly/lib/util/Utils$DebugWrapper;->getDebugger(Ljava/lang/String;)Lcom/burstly/lib/util/Utils$DebugWrapper;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mDebugger:Lcom/burstly/lib/util/Utils$DebugWrapper;

    .line 1056
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackRequestSender:Lcom/burstly/lib/component/TrackRequestSender;

    invoke-virtual {v0}, Lcom/burstly/lib/component/TrackRequestSender;->setBurstlyViewId()V

    .line 1057
    return-void
.end method

.method private static wrap(Lcom/burstly/lib/component/AdaptorController;Lcom/burstly/lib/component/IBurstlyAdaptor;Landroid/view/View;)Landroid/view/ViewGroup;
    .locals 2
    .parameter "controller"
    .parameter "adaptor"
    .parameter "view"

    .prologue
    .line 925
    if-eqz p2, :cond_0

    new-instance v0, Lcom/burstly/lib/component/networkcomponent/HierarchyAwareLayout;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mContext:Landroid/content/Context;

    invoke-direct {v0, v1, p2, p1}, Lcom/burstly/lib/component/networkcomponent/HierarchyAwareLayout;-><init>(Landroid/content/Context;Landroid/view/View;Lcom/burstly/lib/component/IBurstlyAdaptor;)V

    :goto_0
    return-object v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method addComponentToFailedCollector()V
    .locals 7

    .prologue
    .line 282
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    .line 283
    .local v0, currentAdData:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    if-eqz v0, :cond_0

    .line 284
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v2}, Lcom/burstly/lib/component/ComponentState;->getRequestData()Lcom/burstly/lib/network/beans/RequestData;

    move-result-object v1

    .line 285
    .local v1, requestData:Lcom/burstly/lib/network/beans/RequestData;
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mFailedToShow:Ljava/util/List;

    new-instance v3, Lcom/burstly/lib/component/FailedToShow;

    invoke-virtual {v1}, Lcom/burstly/lib/network/beans/RequestData;->getPublisher()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1}, Lcom/burstly/lib/network/beans/RequestData;->getZone()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v0}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getCrid()Ljava/lang/Integer;

    move-result-object v6

    invoke-direct {v3, v4, v5, v6}, Lcom/burstly/lib/component/FailedToShow;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Integer;)V

    invoke-interface {v2, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 288
    .end local v1           #requestData:Lcom/burstly/lib/network/beans/RequestData;
    :cond_0
    return-void
.end method

.method addComponentToParent(Landroid/view/View;)V
    .locals 4
    .parameter "component"

    .prologue
    .line 494
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    if-eqz v0, :cond_0

    if-eqz p1, :cond_0

    iget-boolean v0, p0, Lcom/burstly/lib/component/AdaptorController;->mDestroyed:Z

    if-nez v0, :cond_0

    .line 495
    sget-object v0, Lcom/burstly/lib/component/AdaptorController;->SECURE_RANDOM:Ljava/security/SecureRandom;

    invoke-virtual {v0}, Ljava/security/SecureRandom;->nextInt()I

    move-result v0

    invoke-static {v0}, Ljava/lang/Math;->abs(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/view/View;->setId(I)V

    .line 496
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0, p1}, Lcom/burstly/lib/ui/BurstlyView;->addView(Landroid/view/View;)V

    .line 501
    :goto_0
    return-void

    .line 498
    :cond_0
    sget-object v0, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v2, "Parent or component view is NULL or has been destroyed! Can not add component  to parent."

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method beginTransaction(Lcom/burstly/lib/network/ResponseObject;)V
    .locals 10
    .parameter "response"

    .prologue
    const/4 v9, 0x2

    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 732
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorController;->mParams:Lcom/burstly/lib/network/ResponseObject;

    .line 733
    if-eqz p1, :cond_5

    .line 734
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mClientTargetParams:Ljava/util/Map;

    if-eqz v2, :cond_0

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mClientTargetParams:Ljava/util/Map;

    invoke-interface {v2}, Ljava/util/Map;->size()I

    move-result v2

    if-lez v2, :cond_0

    .line 735
    const-string v2, "clientTargetingParams"

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mClientTargetParams:Ljava/util/Map;

    invoke-virtual {p1, v2, v3}, Lcom/burstly/lib/network/ResponseObject;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 737
    :cond_0
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mCustomNetworkParams:Ljava/util/Map;

    if-eqz v2, :cond_1

    .line 738
    sget-object v2, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v4, "Set custom adapter parameters for network: {0}"

    new-array v5, v8, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    aput-object v6, v5, v7

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 739
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mCustomNetworkParams:Ljava/util/Map;

    invoke-virtual {p1, v2, v3}, Lcom/burstly/lib/network/ResponseObject;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 741
    :cond_1
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mIsInterstitialMode:Ljava/lang/Boolean;

    if-eqz v2, :cond_2

    .line 742
    const-string v2, "isCodeValueInterstitial"

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mIsInterstitialMode:Ljava/lang/Boolean;

    invoke-virtual {p1, v2, v3}, Lcom/burstly/lib/network/ResponseObject;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 743
    sget-object v2, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v4, "Set iterstitial mode {0} for network: {1}"

    new-array v5, v9, [Ljava/lang/Object;

    iget-object v6, p0, Lcom/burstly/lib/component/AdaptorController;->mIsInterstitialMode:Ljava/lang/Boolean;

    aput-object v6, v5, v7

    iget-object v6, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    aput-object v6, v5, v8

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 745
    :cond_2
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v2}, Lcom/burstly/lib/component/ComponentState;->getRequestData()Lcom/burstly/lib/network/beans/RequestData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/RequestData;->getData()Lcom/burstly/lib/network/beans/RequestData$Request;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/RequestData$Request;->getAdSize()[Ljava/lang/String;

    move-result-object v0

    .line 746
    .local v0, adSize:[Ljava/lang/String;
    if-eqz v0, :cond_3

    array-length v2, v0

    if-ne v2, v8, :cond_3

    .line 747
    const-string v2, "adSizeCodeValue"

    aget-object v3, v0, v7

    invoke-virtual {p1, v2, v3}, Lcom/burstly/lib/network/ResponseObject;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 748
    sget-object v2, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v4, "Set ad size {0} for network: {1}"

    new-array v5, v9, [Ljava/lang/Object;

    aget-object v6, v0, v7

    aput-object v6, v5, v7

    iget-object v6, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    aput-object v6, v5, v8

    invoke-virtual {v2, v3, v4, v5}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 750
    :cond_3
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v2}, Lcom/burstly/lib/component/ComponentState;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    invoke-static {v2}, Lcom/burstly/lib/util/Utils;->forceHardwareAccelerationTo(Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;)Ljava/lang/Boolean;

    move-result-object v1

    .line 752
    .local v1, forceHardwareAccelerationTo:Ljava/lang/Boolean;
    if-eqz v1, :cond_4

    .line 753
    const-string v2, "OverrideHardwareAccelerationTo"

    invoke-virtual {p1, v2, v1}, Lcom/burstly/lib/network/ResponseObject;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 756
    :cond_4
    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v2, p1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->startTransaction(Ljava/util/Map;)V

    .line 760
    return-void

    .line 758
    .end local v0           #adSize:[Ljava/lang/String;
    .end local v1           #forceHardwareAccelerationTo:Ljava/lang/Boolean;
    :cond_5
    new-instance v2, Ljava/lang/IllegalStateException;

    const-string v3, "Error parsing server paramters"

    invoke-direct {v2, v3}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v2
.end method

.method public click()V
    .locals 3

    .prologue
    .line 266
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    invoke-interface {v1, v2}, Lcom/burstly/lib/component/IInternalBurstlyAdListener;->adNetworkWasClicked(Ljava/lang/String;)V

    .line 267
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptorListener:Lcom/burstly/lib/component/AdaptorListener;

    invoke-virtual {v1}, Lcom/burstly/lib/component/AdaptorListener;->getClickRedirectUrl()Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v1}, Lcom/burstly/lib/component/AdaptorController;->sendTrackClickRequest(Ljava/lang/String;)V

    .line 268
    sget-object v1, Lcom/burstly/lib/network/beans/DestinationType;->None:Lcom/burstly/lib/network/beans/DestinationType;

    invoke-virtual {v1}, Lcom/burstly/lib/network/beans/DestinationType;->getValue()Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getDestType()Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/Integer;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 269
    const/4 v0, 0x0

    .line 270
    .local v0, activeFullscreen:Landroid/app/Activity;
    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sActiveActivity:Ljava/lang/ref/Reference;

    if-eqz v1, :cond_0

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyFullscreenActivity;->sActiveActivity:Ljava/lang/ref/Reference;

    invoke-virtual {v1}, Ljava/lang/ref/Reference;->get()Ljava/lang/Object;

    move-result-object v0

    .end local v0           #activeFullscreen:Landroid/app/Activity;
    check-cast v0, Landroid/app/Activity;

    .restart local v0       #activeFullscreen:Landroid/app/Activity;
    if-eqz v0, :cond_0

    .line 272
    invoke-virtual {v0}, Landroid/app/Activity;->finish()V

    .line 275
    .end local v0           #activeFullscreen:Landroid/app/Activity;
    :cond_0
    return-void
.end method

.method public configure(Ljava/util/Map;)V
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 1126
    .local p1, configurationData:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v1, "gestureDebug"

    invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1127
    .local v0, gestureState:Ljava/lang/String;
    sget-object v1, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v3, "New value for gestureState: {0}"

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1128
    const-string v1, "on"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/AdaptorController;->setIsDebugGestureOn(Z)V

    .line 1129
    return-void
.end method

.method protected defaultPostClickCallback(Lcom/burstly/lib/network/beans/TrackClickResult;)V
    .locals 0
    .parameter "responseBean"

    .prologue
    .line 580
    return-void
.end method

.method public destroy()V
    .locals 1

    .prologue
    .line 378
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/burstly/lib/component/AdaptorController;->mDestroyed:Z

    .line 379
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->destroy()V

    .line 380
    return-void
.end method

.method public equals(Ljava/lang/Object;)Z
    .locals 5
    .parameter "obj"

    .prologue
    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 1155
    if-ne p0, p1, :cond_1

    .line 1179
    :cond_0
    :goto_0
    return v1

    .line 1158
    :cond_1
    if-nez p1, :cond_2

    move v1, v2

    .line 1159
    goto :goto_0

    .line 1161
    :cond_2
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v3

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v4

    if-eq v3, v4, :cond_3

    move v1, v2

    .line 1162
    goto :goto_0

    :cond_3
    move-object v0, p1

    .line 1164
    check-cast v0, Lcom/burstly/lib/component/AdaptorController;

    .line 1165
    .local v0, other:Lcom/burstly/lib/component/AdaptorController;
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getViewId()Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_4

    .line 1166
    invoke-virtual {v0}, Lcom/burstly/lib/component/AdaptorController;->getViewId()Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_5

    move v1, v2

    .line 1167
    goto :goto_0

    .line 1169
    :cond_4
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getViewId()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0}, Lcom/burstly/lib/component/AdaptorController;->getViewId()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_5

    move v1, v2

    .line 1170
    goto :goto_0

    .line 1172
    :cond_5
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getNetworkName()Ljava/lang/String;

    move-result-object v3

    if-nez v3, :cond_6

    .line 1173
    invoke-virtual {v0}, Lcom/burstly/lib/component/AdaptorController;->getNetworkName()Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_0

    move v1, v2

    .line 1174
    goto :goto_0

    .line 1176
    :cond_6
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getNetworkName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0}, Lcom/burstly/lib/component/AdaptorController;->getNetworkName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-nez v3, :cond_0

    move v1, v2

    .line 1177
    goto :goto_0
.end method

.method protected fillUpWithCurrentResponseData(Lcom/burstly/lib/network/ResponseObject;)V
    .locals 2
    .parameter "result"

    .prologue
    .line 831
    if-eqz p1, :cond_0

    .line 832
    const-string v0, "componentState"

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {p1, v0, v1}, Lcom/burstly/lib/network/ResponseObject;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 833
    const-string v0, "context"

    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p1, v0, v1}, Lcom/burstly/lib/network/ResponseObject;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 835
    :cond_0
    return-void
.end method

.method public getAdaptor()Lcom/burstly/lib/component/IBurstlyAdaptor;
    .locals 1

    .prologue
    .line 370
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    return-object v0
.end method

.method public getBursltlyAdListener()Lcom/burstly/lib/component/IInternalBurstlyAdListener;
    .locals 1

    .prologue
    .line 1070
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    return-object v0
.end method

.method getContext()Landroid/content/Context;
    .locals 1

    .prologue
    .line 1106
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method public getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    .locals 1

    .prologue
    .line 617
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v0}, Lcom/burstly/lib/component/ComponentState;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    return-object v0
.end method

.method getCurrentState()Lcom/burstly/lib/component/ComponentState;
    .locals 1

    .prologue
    .line 1097
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    return-object v0
.end method

.method protected getDataForComponent()V
    .locals 2

    .prologue
    .line 841
    new-instance v0, Lcom/burstly/lib/component/AdaptorController$ParseParamsAsyncTask;

    invoke-direct {v0, p0}, Lcom/burstly/lib/component/AdaptorController$ParseParamsAsyncTask;-><init>(Lcom/burstly/lib/component/AdaptorController;)V

    const/4 v1, 0x0

    new-array v1, v1, [Ljava/lang/Void;

    invoke-virtual {v0, v1}, Lcom/burstly/lib/component/AdaptorController$ParseParamsAsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 842
    return-void
.end method

.method getLifeCycleListener()Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;
    .locals 1

    .prologue
    .line 682
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mLifeCycleListener:Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;

    return-object v0
.end method

.method public getNetworkName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 1044
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->getNetworkName()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method getTrackClickRequest()Lcom/burstly/lib/network/beans/TrackClickRequest;
    .locals 1

    .prologue
    .line 1088
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackClickRequest:Lcom/burstly/lib/network/beans/TrackClickRequest;

    return-object v0
.end method

.method getTrackShowRequest()Lcom/burstly/lib/network/beans/TrackShowRequest;
    .locals 1

    .prologue
    .line 1079
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackShowRequest:Lcom/burstly/lib/network/beans/TrackShowRequest;

    return-object v0
.end method

.method getView()Landroid/view/View;
    .locals 2

    .prologue
    .line 484
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mViewHolder:Lcom/burstly/lib/component/ViewHolder;

    invoke-virtual {v1}, Lcom/burstly/lib/component/ViewHolder;->getPrecachedAdView()Landroid/view/View;

    move-result-object v0

    .line 485
    .local v0, precachedAdView:Landroid/view/View;
    if-eqz v0, :cond_0

    .end local v0           #precachedAdView:Landroid/view/View;
    :goto_0
    return-object v0

    .restart local v0       #precachedAdView:Landroid/view/View;
    :cond_0
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mViewHolder:Lcom/burstly/lib/component/ViewHolder;

    invoke-virtual {v1}, Lcom/burstly/lib/component/ViewHolder;->getAdView()Landroid/view/View;

    move-result-object v0

    goto :goto_0
.end method

.method public getViewId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 570
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyViewId:Ljava/lang/String;

    return-object v0
.end method

.method handleSuccessToLoad()V
    .locals 1

    .prologue
    .line 707
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->saveSuccessResponse()V

    .line 708
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->isPrefetchRequest()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 709
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->handleSuccessToPrecache()V

    .line 716
    :goto_0
    return-void

    .line 712
    :cond_0
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->saveCookies()V

    .line 713
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->sendTrackShowRequest()V

    .line 714
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->notifySuccessfullyShowed()V

    goto :goto_0
.end method

.method handleSuccessToPrecache()V
    .locals 4

    .prologue
    .line 722
    sget-object v0, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v2, "Component was created in prefetch mode. It will not be shown until request next ad."

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Object;

    invoke-virtual {v0, v1, v2, v3}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 723
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IInternalBurstlyAdListener;->didPrecacheAd(Ljava/lang/String;)V

    .line 724
    return-void
.end method

.method public hashCode()I
    .locals 5

    .prologue
    const/4 v3, 0x0

    .line 1146
    const/16 v0, 0x1f

    .line 1147
    .local v0, prime:I
    const/4 v1, 0x1

    .line 1148
    .local v1, result:I
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getViewId()Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_0

    move v2, v3

    :goto_0
    add-int/lit8 v1, v2, 0x1f

    .line 1149
    mul-int/lit8 v2, v1, 0x1f

    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getNetworkName()Ljava/lang/String;

    move-result-object v4

    if-nez v4, :cond_1

    :goto_1
    add-int v1, v2, v3

    .line 1150
    return v1

    .line 1148
    :cond_0
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getViewId()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->hashCode()I

    move-result v2

    goto :goto_0

    .line 1149
    :cond_1
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getNetworkName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/String;->hashCode()I

    move-result v3

    goto :goto_1
.end method

.method public hideComponent()V
    .locals 1

    .prologue
    .line 447
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v0}, Lcom/burstly/lib/ui/BurstlyView;->removeAllViews()V

    .line 448
    return-void
.end method

.method public isConstantRecepient()Z
    .locals 1

    .prologue
    .line 1133
    const/4 v0, 0x0

    return v0
.end method

.method isContinueProcessing(Lcom/burstly/lib/network/ResponseObject;)Z
    .locals 6
    .parameter "params"

    .prologue
    const/4 v2, 0x0

    .line 851
    if-eqz p1, :cond_1

    const/4 v0, 0x1

    .line 852
    .local v0, isValid:Z
    :goto_0
    if-eqz v0, :cond_0

    .line 853
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/AdaptorController;->initAutorefresh(Lcom/burstly/lib/network/ResponseObject;)V

    .line 854
    iget-boolean v3, p0, Lcom/burstly/lib/component/AdaptorController;->mIsPrefetchRequest:Z

    if-eqz v3, :cond_0

    .line 855
    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v3}, Lcom/burstly/lib/component/IBurstlyAdaptor;->getAdType()Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    move-result-object v1

    .line 856
    .local v1, type:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    sget-object v3, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->UNKNOWN_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    if-ne v1, v3, :cond_2

    .line 858
    const/4 v0, 0x0

    .line 859
    sget-object v3, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v4, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v5, "Current adaptor does not support precaching because BurstlyAdType returned from adaptor is BurstlyAdType.UNKNOWN_AD_TYPE."

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v3, v4, v5, v2}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 870
    .end local v1           #type:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    :cond_0
    :goto_1
    return v0

    .end local v0           #isValid:Z
    :cond_1
    move v0, v2

    .line 851
    goto :goto_0

    .line 862
    .restart local v0       #isValid:Z
    .restart local v1       #type:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    :cond_2
    sget-object v3, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->INTERSTITIAL_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    if-ne v1, v3, :cond_0

    .line 863
    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    sget-object v4, Lcom/burstly/lib/component/IBurstlyAdaptor$AdaptorAction;->PRECACHE_INTERSTITIAL:Lcom/burstly/lib/component/IBurstlyAdaptor$AdaptorAction;

    invoke-virtual {v4}, Lcom/burstly/lib/component/IBurstlyAdaptor$AdaptorAction;->getCode()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v3, v4}, Lcom/burstly/lib/component/IBurstlyAdaptor;->supports(Ljava/lang/String;)Z

    move-result v0

    .line 864
    if-nez v0, :cond_0

    .line 865
    sget-object v3, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v4, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v5, "Current adaptor does not support interstitial precaching."

    new-array v2, v2, [Ljava/lang/Object;

    invoke-virtual {v3, v4, v5, v2}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_1
.end method

.method public isDebugGestureOn()Z
    .locals 1

    .prologue
    .line 1137
    iget-boolean v0, p0, Lcom/burstly/lib/component/AdaptorController;->mIsDebugGestureOn:Z

    return v0
.end method

.method public isPrefetchRequest()Z
    .locals 1

    .prologue
    .line 665
    iget-boolean v0, p0, Lcom/burstly/lib/component/AdaptorController;->mIsPrefetchRequest:Z

    return v0
.end method

.method notifyFailed(Z)V
    .locals 3
    .parameter "precachedFailed"

    .prologue
    .line 298
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mDebugger:Lcom/burstly/lib/util/Utils$DebugWrapper;

    invoke-virtual {v0}, Lcom/burstly/lib/util/Utils$DebugWrapper;->logAll()V

    .line 299
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    sget-object v1, Lcom/burstly/lib/component/IBurstlyAdaptor$TransactionCode;->CODE_FAILED:Lcom/burstly/lib/component/IBurstlyAdaptor$TransactionCode;

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->endTransaction(Lcom/burstly/lib/component/IBurstlyAdaptor$TransactionCode;)V

    .line 300
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IInternalBurstlyAdListener;->failedToLoad(Ljava/lang/String;)V

    .line 301
    if-nez p1, :cond_0

    .line 302
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mLifeCycleListener:Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;

    new-instance v1, Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mFailedToShow:Ljava/util/List;

    invoke-direct {v1, v2}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;->failedToShow(Ljava/util/List;)V

    .line 306
    :goto_0
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mFailedToShow:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 307
    return-void

    .line 304
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    invoke-interface {v0}, Lcom/burstly/lib/component/IInternalBurstlyAdListener;->failedToDisplayAds()V

    goto :goto_0
.end method

.method public onCloseOverlay()V
    .locals 4

    .prologue
    .line 1121
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    new-instance v1, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    const/4 v3, 0x1

    invoke-direct {v1, v2, v3}, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;-><init>(Ljava/lang/String;Z)V

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IInternalBurstlyAdListener;->onHideFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 1122
    return-void
.end method

.method public onShowOverlay()V
    .locals 4

    .prologue
    .line 1116
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    new-instance v1, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    const/4 v3, 0x1

    invoke-direct {v1, v2, v3}, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;-><init>(Ljava/lang/String;Z)V

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IInternalBurstlyAdListener;->onShowFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 1117
    return-void
.end method

.method public pause()V
    .locals 1

    .prologue
    .line 384
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->pause()V

    .line 385
    return-void
.end method

.method public resume()V
    .locals 1

    .prologue
    .line 389
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->resume()V

    .line 390
    return-void
.end method

.method sendTrackShowRequest()V
    .locals 1

    .prologue
    .line 551
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackRequestSender:Lcom/burstly/lib/component/TrackRequestSender;

    invoke-virtual {v0}, Lcom/burstly/lib/component/TrackRequestSender;->onShow()V

    .line 552
    return-void
.end method

.method setAdaptorListener()V
    .locals 2

    .prologue
    .line 987
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptorListener:Lcom/burstly/lib/component/AdaptorListener;

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->setAdaptorListener(Lcom/burstly/lib/component/IBurstlyAdaptorListener;)V

    .line 988
    return-void
.end method

.method public setBursltlyAdListener(Lcom/burstly/lib/component/IInternalBurstlyAdListener;)V
    .locals 1
    .parameter "burstlyListener"

    .prologue
    .line 542
    const-string v0, "Burstly listener can not be null"

    invoke-static {v0, p1}, Ljunit/framework/Assert;->assertNotNull(Ljava/lang/String;Ljava/lang/Object;)V

    .line 543
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    .line 544
    return-void
.end method

.method public setClientTargetParams(Ljava/util/Map;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 597
    .local p1, clientTargetParams:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;"
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorController;->mClientTargetParams:Ljava/util/Map;

    .line 598
    return-void
.end method

.method public setCustomNetworkParams(Ljava/util/Map;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .prologue
    .line 602
    .local p1, customNetworkParams:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorController;->mCustomNetworkParams:Ljava/util/Map;

    .line 603
    return-void
.end method

.method public setInterstitialMode(Z)V
    .locals 1
    .parameter "isInterstitial"

    .prologue
    .line 607
    invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mIsInterstitialMode:Ljava/lang/Boolean;

    .line 608
    return-void
.end method

.method public setIsDebugGestureOn(Z)V
    .locals 0
    .parameter "isDebugGestureOn"

    .prologue
    .line 1141
    iput-boolean p1, p0, Lcom/burstly/lib/component/AdaptorController;->mIsDebugGestureOn:Z

    .line 1142
    return-void
.end method

.method public setLifeCycleListener(Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;)V
    .locals 0
    .parameter "lcListener"

    .prologue
    .line 657
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorController;->mLifeCycleListener:Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;

    .line 658
    return-void
.end method

.method public setParent(Lcom/burstly/lib/ui/BurstlyView;)V
    .locals 1
    .parameter "parent"

    .prologue
    .line 589
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    if-nez v0, :cond_0

    .line 590
    const-string v0, "Parent can not be null"

    invoke-static {v0, p1}, Ljunit/framework/Assert;->assertNotNull(Ljava/lang/String;Ljava/lang/Object;)V

    .line 591
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    .line 593
    :cond_0
    return-void
.end method

.method public setPrefetchedRequest(Z)V
    .locals 0
    .parameter "isPrefetchedRequest"

    .prologue
    .line 673
    iput-boolean p1, p0, Lcom/burstly/lib/component/AdaptorController;->mIsPrefetchRequest:Z

    .line 674
    return-void
.end method

.method public setResponseSaver(Lcom/burstly/lib/persistance/ResponseSaver;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/burstly/lib/persistance/ResponseSaver",
            "<",
            "Lcom/burstly/lib/network/beans/ResponseBean;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 1111
    .local p1, responseSaver:Lcom/burstly/lib/persistance/ResponseSaver;,"Lcom/burstly/lib/persistance/ResponseSaver<Lcom/burstly/lib/network/beans/ResponseBean;>;"
    iput-object p1, p0, Lcom/burstly/lib/component/AdaptorController;->mResponseSaver:Lcom/burstly/lib/persistance/ResponseSaver;

    .line 1112
    return-void
.end method

.method public showComponent()V
    .locals 7

    .prologue
    .line 455
    iget-boolean v3, p0, Lcom/burstly/lib/component/AdaptorController;->mIsPrefetchRequest:Z

    if-nez v3, :cond_0

    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->handleAsBanner()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 456
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->forceInterstitial()Z

    move-result v3

    if-nez v3, :cond_1

    .line 458
    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mUiThread:Landroid/os/Handler;

    new-instance v4, Lcom/burstly/lib/component/AdaptorController$ViewSwitcher;

    invoke-direct {v4, p0}, Lcom/burstly/lib/component/AdaptorController$ViewSwitcher;-><init>(Lcom/burstly/lib/component/AdaptorController;)V

    invoke-virtual {v3, v4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 476
    :cond_0
    :goto_0
    return-void

    .line 460
    :cond_1
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getView()Landroid/view/View;

    move-result-object v2

    .line 461
    .local v2, view:Landroid/view/View;
    if-eqz v2, :cond_2

    .line 462
    new-instance v0, Lcom/burstly/lib/component/AdaptorCustomFullscreen;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mContext:Landroid/content/Context;

    invoke-direct {v0, v3}, Lcom/burstly/lib/component/AdaptorCustomFullscreen;-><init>(Landroid/content/Context;)V

    .line 463
    .local v0, adaptorCustom:Lcom/burstly/lib/component/AdaptorCustomFullscreen;
    invoke-virtual {v0, v2}, Lcom/burstly/lib/component/AdaptorCustomFullscreen;->addView(Landroid/view/View;)V

    .line 464
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    invoke-direct {v1, v0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;-><init>(Landroid/view/View;Ljava/lang/String;)V

    .line 466
    .local v1, fullscreenBanner:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer<*>;"
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v3

    invoke-virtual {v3}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getInterstitialShowtime()Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;->setInterstitialShowtime(Ljava/lang/Integer;)V

    .line 467
    invoke-virtual {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;->setOverlayListener(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer$IOverlayListener;)V

    .line 468
    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;->showOverlayed()V

    .line 469
    invoke-virtual {v2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    goto :goto_0

    .line 471
    .end local v0           #adaptorCustom:Lcom/burstly/lib/component/AdaptorCustomFullscreen;
    .end local v1           #fullscreenBanner:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer<*>;"
    :cond_2
    sget-object v3, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v4, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v5, "View to show as cusom interstitial is null. This could be cased by invalid success notification from ad network."

    const/4 v6, 0x0

    new-array v6, v6, [Ljava/lang/Object;

    invoke-virtual {v3, v4, v5, v6}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method public showPrecachedAd()V
    .locals 5

    .prologue
    .line 508
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v1

    invoke-static {v1}, Lcom/burstly/lib/util/Utils;->isAdExpired(Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 509
    sget-object v1, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v3, "Cached ad expired!"

    const/4 v4, 0x0

    new-array v4, v4, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logDebug(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 510
    const/4 v1, 0x1

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/AdaptorController;->notifyFailed(Z)V

    .line 511
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    sget-object v2, Lcom/burstly/lib/ui/LastBurstlyError;->CACHE_EXPIRED:Lcom/burstly/lib/ui/LastBurstlyError;

    invoke-virtual {v1, v2}, Lcom/burstly/lib/ui/BurstlyView;->setLastError(Lcom/burstly/lib/ui/LastBurstlyError;)V

    .line 512
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mViewHolder:Lcom/burstly/lib/component/ViewHolder;

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Lcom/burstly/lib/component/ViewHolder;->setPrecachedAdView(Landroid/view/View;)V

    .line 524
    :goto_0
    return-void

    .line 514
    :cond_0
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->saveCookies()V

    .line 515
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->getAdType()Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    move-result-object v0

    .line 516
    .local v0, adType:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->notifySuccessfullyShowed()V

    .line 517
    sget-object v1, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->INTERSTITIAL_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    if-ne v0, v1, :cond_1

    .line 518
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v1}, Lcom/burstly/lib/component/IBurstlyAdaptor;->showPrecachedInterstitialAd()V

    goto :goto_0

    .line 520
    :cond_1
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->sendTrackShowRequest()V

    goto :goto_0
.end method

.method public start()V
    .locals 7

    .prologue
    const/4 v6, 0x0

    .line 995
    sget-object v1, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v3, "Server has passed an {0} advertise..."

    const/4 v4, 0x1

    new-array v4, v4, [Ljava/lang/Object;

    iget-object v5, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    aput-object v5, v4, v6

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 997
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mNetworkName:Ljava/lang/String;

    invoke-interface {v1, v2}, Lcom/burstly/lib/component/IInternalBurstlyAdListener;->attemptingToLoad(Ljava/lang/String;)V

    .line 998
    sget-object v1, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    const-string v3, "Try to get data for this component if any..."

    new-array v4, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1000
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->getNotExpiredResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    .line 1001
    .local v0, response:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    if-eqz v0, :cond_0

    .line 1002
    new-instance v1, Lcom/burstly/lib/component/AdaptorListener;

    invoke-direct {v1, p0}, Lcom/burstly/lib/component/AdaptorListener;-><init>(Lcom/burstly/lib/component/AdaptorController;)V

    iput-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptorListener:Lcom/burstly/lib/component/AdaptorListener;

    .line 1003
    sget-object v1, Lcom/burstly/lib/component/AdaptorController;->LOG:Lcom/burstly/lib/util/LoggerExt;

    iget-object v2, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    invoke-virtual {v0}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->toString()Ljava/lang/String;

    move-result-object v3

    new-array v4, v6, [Ljava/lang/Object;

    invoke-virtual {v1, v2, v3, v4}, Lcom/burstly/lib/util/LoggerExt;->logInfo(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    .line 1004
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getDataForComponent()V

    .line 1015
    :goto_0
    return-void

    .line 1012
    :cond_0
    invoke-direct {p0}, Lcom/burstly/lib/component/AdaptorController;->getFullResponse()Lcom/burstly/lib/network/beans/ResponseBean;

    move-result-object v1

    invoke-virtual {v1}, Lcom/burstly/lib/network/beans/ResponseBean;->isIsLoadedFromCache()Z

    move-result v1

    invoke-virtual {p0, v1}, Lcom/burstly/lib/component/AdaptorController;->notifyFailed(Z)V

    .line 1013
    iget-object v1, p0, Lcom/burstly/lib/component/AdaptorController;->mCurrentState:Lcom/burstly/lib/component/ComponentState;

    invoke-virtual {v1}, Lcom/burstly/lib/component/ComponentState;->clearState()V

    goto :goto_0
.end method

.method public stop()V
    .locals 1

    .prologue
    .line 1036
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptorListener:Lcom/burstly/lib/component/AdaptorListener;

    if-eqz v0, :cond_0

    .line 1037
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptorListener:Lcom/burstly/lib/component/AdaptorListener;

    invoke-virtual {v0}, Lcom/burstly/lib/component/AdaptorListener;->forceStop()V

    .line 1039
    :cond_0
    iget-object v0, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-interface {v0}, Lcom/burstly/lib/component/IBurstlyAdaptor;->stop()V

    .line 1040
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 4

    .prologue
    .line 622
    invoke-virtual {p0}, Lcom/burstly/lib/component/AdaptorController;->getCurrentAdData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v0

    .line 623
    .local v0, responseData:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "\n"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTag:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " crid is "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getCrid()Ljava/lang/Integer;

    move-result-object v2

    :goto_0
    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "[mAdaptor="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mAdaptor:Lcom/burstly/lib/component/IBurstlyAdaptor;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mBurstlyListener="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyListener:Lcom/burstly/lib/component/IInternalBurstlyAdListener;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mBurstlyViewId="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mBurstlyViewId:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mContext="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mContext:Landroid/content/Context;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, " mDestroyed="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-boolean v3, p0, Lcom/burstly/lib/component/AdaptorController;->mDestroyed:Z

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mFailedToShow="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mFailedToShow:Ljava/util/List;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mIsInterstitial="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-boolean v3, p0, Lcom/burstly/lib/component/AdaptorController;->mIsInterstitial:Z

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mIsPrefetchRequest="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-boolean v3, p0, Lcom/burstly/lib/component/AdaptorController;->mIsPrefetchRequest:Z

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mLifeCycleListener="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mLifeCycleListener:Lcom/burstly/lib/component/IAdaptorController$IComponentQueueLifecycleListener;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mParent="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mParent:Lcom/burstly/lib/ui/BurstlyView;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mTrackClickRequest="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackClickRequest:Lcom/burstly/lib/network/beans/TrackClickRequest;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mTrackShowRequest="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mTrackShowRequest:Lcom/burstly/lib/network/beans/TrackShowRequest;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ", mViewHolder="

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lcom/burstly/lib/component/AdaptorController;->mViewHolder:Lcom/burstly/lib/component/ViewHolder;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "]"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 630
    .local v1, str:Ljava/lang/String;
    return-object v1

    .line 623
    .end local v1           #str:Ljava/lang/String;
    :cond_0
    const-string v2, "undefined yet"

    goto/16 :goto_0
.end method
